﻿using System.Data.Entity;

namespace b7.Models
{
    public class b7Context : DbContext
    {
        // You can add custom code to this file. Changes will not be overwritten.
        // 
        // If you want Entity Framework to drop and regenerate your database
        // automatically whenever you change your model schema, add the following
        // code to the Application_Start method in your Global.asax file.
        // Note: this will destroy and re-create your database with every model change.
        // 
        // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<b7.Models.b7Context>());

        public DbSet<User> Users { get; set; }

        public DbSet<Member> Members { get; set; }

        public DbSet<NhomSanpham> NhomSanphams { get; set; }

        public DbSet<Sanpham> Sanphams { get; set; }

        public DbSet<Menu> Menus { get; set; }

        public DbSet<BaiViet> BaiViets { get; set; }

        public DbSet<Ad> Ads { get; set; }

        public DbSet<Orders> Orders { get; set; }

        public DbSet<OrdersDetail> OrdersDetails { get; set; }

        public DbSet<Comment> Comments { get; set; }

        public DbSet<WebInfo> WebInfoes { get; set; }
    }
}
